package multiplication_game;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

class Main 
{
	public static void main(String [] args)
	{
		new MultiplicationGame().start();
	}
}

class MultiplicationGame
{
	public void start()
	{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		
		try
		{
			String n;
			
			while (!(n = reader.readLine()).equals(""))
			{
				int number = Integer.parseInt(n);
			}
		} 
		catch (IOException ex) 
		{
			ex.printStackTrace();
		}
	}
	
	void determineWinner(int n)
	{
		String stanWins = "Stan Wins.";
		String ollieWins = "Ollie Wins.";
		boolean done = false;
		
		// Condition one: Stan wins if value is between  2 to 9.
		if (n >= 2 && n <= 9)
		{
			System.out.println(stanWins);
			return;
		} 
		
		// Target value.
		int targetValue = n / 9;
		
		// Condition two: if target value is <= 1, Ollie wins.
		if (targetValue <= 1)
		{
			System.out.println(ollieWins);
			return;
		}
		
		// Condition three: if target value is between 2 and 9, Stan wins.
		if (targetValue >= 2 && targetValue <= 9)
		{
			System.out.println(stanWins);
			return;
		}
		
		// Starting results for Ollie.
		ArrayList<Integer> ollieValues = new ArrayList<Integer>();
		
		for (int x = 2; x <= 9; x++)
		{
			ollieValues.add(x);
		}
		
		// Place holder.
		ArrayList<Integer> result = new ArrayList<Integer>();
		
		while (done == false)
		{
			int count = 0;
			
			for (int p = 2; p <= 9; p++)
			{
				// Predict which values Ollie will use if Stan uses p.
				int value = p * ollieValues.get(count);
				
				// if any values reaches or exceeds the target value, then Stan will most likely
				// not use that p.
				if (value >= targetValue)
				{
					result.clear();
					break;
				}
				else
				{
					result.add(value);
				}
				
				count++;
			}
		}
	}
}
